import java.math.BigInteger;
import java.util.Scanner;

/**
 * 输入两个用字符串 str 表示的整数，求它们所表示的数之和。
 */
public class PlusTwoNum {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()){
            String a = scanner.nextLine();
            String b = scanner.nextLine();
            BigInteger integerA = new BigInteger(a);
            BigInteger bigIntegerB = new BigInteger(b);
            System.out.println(integerA.add(bigIntegerB));
        }
    }
}
